import Vue from 'vue'
import App from './App'
import store from '@/store'
import './uni.promisify.adaptor'
import { showMsg } from '@/utils/message'
// 1. 导入http实例
import http from '@/utils/request'
// 2. 挂载到vue原型对象上
Vue.prototype.$http = http
Vue.prototype.$showMsg = showMsg

// this.$http.get('')
Vue.filter('formatNum', (price) => {
  return price.toFixed(2)
})

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
  ...App,
  store
})
app.$mount()
